package com.zuoqi.easywork.userManage.mapper;

import com.zuoqi.common.utils.IMap;
import com.zuoqi.common.utils.MyMapper;
import com.zuoqi.easywork.userManage.model.TcUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface TcUserMapper extends MyMapper<TcUser> {

    List<IMap> getUserList(IMap param);

    TcUser selectForLogin(@Param("username") String username, @Param("password") String password);

    int updateUserPwd(@Param("userId")String userId,@Param("password")String password,
                      @Param("oldPassword")String oldPassword);
    IMap getUserDp(@Param("userId")String userId);

    List<IMap> getUserListForManage(IMap param);

    IMap getUserInfo(@Param("userId")String userId);
}